﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TodoMVC.Tools
{
    public static class DateTimeHelper
    {
        public static string CommonFormat { get; } = "yyyy-MM-dd HH:mm:ss";
        /// <summary>
        /// 
        /// </summary>
        /// <param name="format"></param>
        /// <returns></returns>
        public static string GetDateTimeNowString(string format = "yyyy-MM-dd HH:mm:ss")
        {
            var nowStr = DateTime.Now.ToString(format);
            return nowStr;
        }
    }
}
